import socket

# address = ('219.222.189.166', 8041)
address = ('127.0.0.1', 8042)
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)

while True:
    msg = raw_input()
    if not msg:
        break
    s.sendto(msg, address)
    print msg

s.close()
